import api from "./axios"

// 首页相关接口
export const HomeApi = {
    homeBanner: (param = {}) => api.get('/home/banner', param),
    homeSoltions: (param = {}) => api.get('/home/solution', param),
    homeAbout:(param = {}) => api.get('/home/about', param),
}
//header相关接口
export const HeaderApi = {
    headerList:(param = {}) => api.get('/header', param),
}
//footer相关接口
export const FooterApi = {
    footerList:(param = {}) => api.get('/footer', param),
}
//关于我们接口
export const AboutApi = {
    aboutList:(param = {}) => api.get('/about', param),
}
// 解决方案接口
export const ProgrammeApi = {
    programmeList:(param = {}) => api.get('/prommage', param),
}
// 新闻列表接口
export const NewsListApi = {
    newsList:(param = {}) => api.get('/news/list', param),
}
// 新闻详情
export const NewsDetailApi = {
    newsDetail:(param = {}) => api.get(`/news/detail?newsId=${param.newsId}`, param),
    // newsDetail:(param = {}) => api.get('/news/detail?newsId=param.newsId', param),

}